import java.util.Scanner;

/**
 * @author 8zhazha8
 * @create 2021-04-24-20:53
 */
public class HomeWork4 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入m的值");
        float m=scanner.nextFloat();
        System.out.println("请输入n的值");
        float n=scanner.nextFloat();
        float num=jisuan(m, n);
        System.out.println("m的n次方是："+num);
    }
    public static float jisuan(float m,float n) {
        float num=(float) Math.pow(m, n);
        return num;
    }
}
